/**
 * Created by Administrator on 2017/1/12.
 */
angular.module("myKitchen")

    .service("singleService",function($http){
        this.getAllItems = function (callback) {
            $http.get("public/data/cartData/cart-second1.json").success(callback)
        }
        var arr=[];
        this.getAdress=function(name,phone,adres,key,aa){
            arr=[name,phone,adres,key,aa];

        }
        this.sendItems=function(){
            return arr;
        }

        var cartItem;
        this.getcartItems = function(Items){
            cartItem = Items;
            console.log(cartItem);
        }
        this.sendcartItems = function () {
            return cartItem;
        }
    })

